package com.qzdsoft.erpcloud.service.sys.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.qzdsoft.erpcloud.domain.sys.SysLog;
import com.qzdsoft.erpcloud.mapper.sys.SysLogMapper;
import com.qzdsoft.erpcloud.service.sys.SysLogService;
import com.qzdsoft.erpcloud.vo.sys.SysLogInfo;
import com.qzdsoft.erpcloud.vo.sys.SysLogQueryParam;
import com.qzdsoft.vo.LayTableResponse;

@Service
public class SysLogServiceImpl implements SysLogService
{

    @Autowired
    private SysLogMapper sysLogMapper;
    @Override
    public int insert(SysLog log)
    {
        return sysLogMapper.insert(log);
    }

    @Override
    public List<SysLog> selectAll()
    {
        // TODO Auto-generated method stub
        return sysLogMapper.selectAll();
    }

    @Override
    public LayTableResponse<SysLogInfo> getList(SysLogQueryParam info)
    {
        PageHelper.startPage(info.getPage(), info.getLimit());
        List<SysLogInfo> list = sysLogMapper.selectlist(info);
        return new LayTableResponse<SysLogInfo>(list);
    }
    
    

}
